import Vue from "vue";
import { yzButtonAttribute } from '../class/ui/yzButtonAttribute'
import { AttributePanelAttribute } from '../class/ui/attributePanelAttribute'
import { glEvent } from "../events/glEvent";
import { MessageBox } from "element-ui";
/**界面数据 */
export class panel {
    private _current: AttributePanelAttribute = new AttributePanelAttribute({
        capture: "1期XYX",
        width: 500,
        height: 500,
        left: 10,
        bottom: 0,
        backgroundColor: "#000",
        isNoPadding: true,
        children: [
            new yzButtonAttribute({
                title: "漳卅",
                size: "small",
                type: "parimary",
                style: ""
            })
        ]
    });

    constructor() {
        glEvent.ui.addSubcribe("yzButton", () => {
            MessageBox.confirm("确认退出吗？").then(() => {

            });
        })
    }




    public get current() {
        return this._current;
    }
    public set current(v) {
        Object.assign(this._current, v);
    }
}

